package com.zg.scf.web;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zg.common.core.R;
import com.zg.common.core.dao.scf.entity.ImgCategory;
import com.zg.common.core.dao.scf.entity.ImgCategoryScore;
import com.zg.scf.domain.req.account.AccAccountPageReq;
import com.zg.scf.domain.req.img.ImgCategoryScorePageReq;
import com.zg.scf.domain.req.img.ImgConfigAddReq;
import com.zg.scf.domain.vo.AccAccountVo;
import com.zg.scf.domain.vo.ImgCategoryScoreVo;
import com.zg.scf.domain.vo.ImgConfigVo;
import com.zg.scf.feign.ThirdFeign;
import com.zg.scf.service.ImgCategoryScoreService;
import com.zg.scf.service.ImgConfigService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import javax.validation.Valid;

/**
 * DESCRIPTION
 *
 * @author zhanfeng.liang
 * @since 2025-07-25
 */
@RestController
@RequiredArgsConstructor
@RequestMapping("/img/categoryScore")
@Slf4j
@Api(tags = "画像分类得分")
public class ImgCategoryScoreController {

    private final ThirdFeign thirdFeign;

    private final ImgCategoryScoreService imgCategoryScoreService;

    @PostMapping("/page")
    @ApiOperation(value = "后管查询列表")
    public R<Page<ImgCategoryScoreVo>> page(@RequestBody ImgCategoryScorePageReq pageReq) {
        Page<ImgCategoryScoreVo> page = imgCategoryScoreService.page(pageReq, ImgCategoryScoreVo.class);
        return R.success(page);
    }
}
